//
//  BDMNaviSwitchView.h
//  welkin
//
//  Created by liyingpeng on 16/2/25.
//  Copyright © 2016年 com.baidu.cid. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BDMNaviSwitchView : UIView

@property(nonatomic) NSInteger currentSelectedIndex;

- (instancetype)initWithFrame:(CGRect)frame
                       titles:(NSArray *)titleArray
                  selectBlock:(void (^)(NSInteger selectIndex))selectBlock;

- (instancetype)initWithFrame:(CGRect)frame
                       titles:(NSArray *)titleArray
                  selectBlock:(void (^)(NSInteger))selectBlock
                  normalColor:(UIColor *)normalColor
                  selectColor:(UIColor *)selectColor;

- (void)setCurrentSelectedIndex:(NSInteger)currentSelectedIndex animate:(BOOL)animate;

@end
